package main

import (
	"gin-zap/logs"
	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.New()
	// 初始化logger
	logs.InitLogger()
	// 两个中间件加入gin中
	r.Use(logs.GinLogger, logs.GinRecovery(true))
}
